package com.jeff.tianti.cms.service;

import com.jeff.tianti.cms.dao.LegalCasesDao;
import com.jeff.tianti.cms.dao.TeachDao;
import com.jeff.tianti.cms.dto.LegalCasesQueryDTO;
import com.jeff.tianti.cms.dto.TeachQueryDTO;
import com.jeff.tianti.cms.dto.font.LegalCaseFontQueryDTO;
import com.jeff.tianti.cms.entity.LegalCases;
import com.jeff.tianti.cms.entity.Teach;
import com.jeff.tianti.common.entity.PageModel;
import com.jeff.tianti.common.service.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xujianfang
 * @desc ArticleService类 
 * @date 2017-03-16
 */
@Service
public class LegalCasesService extends CommonService<LegalCases,String >  {

    @Autowired
    private LegalCasesDao legalCasesDao;

    @Autowired
    public void setArticleDao(LegalCasesDao legalCasesDao){
      super.setCommonDao(legalCasesDao);
    }

    public PageModel<LegalCases> queryLegalCasesPage(LegalCasesQueryDTO legalCasesQueryDTO){
        return this.legalCasesDao.queryLegalCasesPage(legalCasesQueryDTO);
    }
   public PageModel<LegalCases> queryLegalCasesPage(LegalCaseFontQueryDTO legalCasesQueryDTO){
        return this.legalCasesDao.queryLegalCasesPage(legalCasesQueryDTO);
    }

    public void updateSelectiveById(LegalCases legalCases){
        this.legalCasesDao.updateSelectiveById(legalCases);
    }

}